<input type="hidden" id="oneChannel" value="${customerInfo1.oneChannel}">
<div class="home_box" style="padding: 10px 15px;">
    <div class="consult">
        <div style="padding-left: 10px;">
            <div><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/empty.png" style="width: 23px;vertical-align: bottom;">
                <h3>看诊记录</h3></div>
            <div style="color: #97c82b;position: absolute;right: 15px;top: 10px;" class="showBox">添加</div>
            <#sortDiagnosisDetails  id="sortDiagnosisDetails" list="${consultantInfoList}"/>
        </div>
        <div  style="box-shadow: rgb(102, 102, 102) 0 0 5px">
            <div class="hideBoxs" id="jzRecord">
                <div>请添加新的看诊记录</div>
                <div style="margin-top: 5px;">
                    <textarea name="diagnosisContent" id="diagnosisContent" placeholder="可填写顾客主诉、检查发现、是否面诊、设计方案、是否成交、可开发的、未成交原因等" style="width: 100%;height: 80px;padding-left: 5px;"></textarea>
                </div>
                <div style="padding: 10px 0;">
                    <button type="button" class="btn" onclick="ConsultantInfoDlg.addDiagnosisContent()" style="background: #FF7E00;color: white">确定</button>
                    <button type="button" class="btn cancel">取消</button>
                </div>
            </div>
        </div>
    </div>
    <div class="returnVisit" style="margin-top: 25px;">
        <div style="padding-left: 10px;">
            <div><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/export.png" style="width: 23px;vertical-align: bottom;"><h3>回访详情</h3></div>
            <div style="color: #2c9ae9;position: absolute;right: 15px;top: 10px;" class="showBox">添加</div>
            <div id="further" style="padding-left: 26px;"></div>
            <div style="padding-left: 26px;">
                @for(item in tcRevisitInfoList){
                <div>
                    <div>
                        <span>
                            ${item.createTime}&nbsp;&nbsp;
                            回访人：${item.revisit}&nbsp;&nbsp;
                            @if(item.revisitStatus == 1){
                             状态：待计划
                             @}
                             @if(item.revisitStatus == 2){
                             状态：回访完成
                             @}
                             @if(item.revisitStatus == 3){
                             状态：回访未完成
                             @}
                             @if(item.revisitStatus == 4){
                             状态：回访取消
                             @}
                            &nbsp;&nbsp;
                            内容：${item.remarks}&nbsp;&nbsp;
                            结果：${item.revisitContent}
                        </span>
                    </div>
                </div>
                @}
            </div>
        </div>
        <div style="box-shadow: rgb(102, 102, 102) 0 0 5px">
            <div class="hideBoxs">
                <div class="condition">
                    <span>计划回访时间<span class="asterisk">*</span></span>
                    <input id="revisitTime" class="input_style" autocomplete="off" type="text" onclick="laydate({istiem:true,format:'YYYY-MM-DD',choose:checkDates})">
                </div>
                <div class="condition">
                    <span>跟踪状态<span class="asterisk">*</span></span>
                    <select id="followStatus" name="followStatus" class="input_style">
                        <option value="">请选择</option>
                        <option value="跟踪中">跟踪中</option>
                        <option value="跟踪完成">跟踪完成</option>
                        <option value="跟踪结束">跟踪结束</option>
                    </select>
                </div>
                <div class="condition">
                    <span>消费状态<span class="asterisk">*</span></span>
                    <select id="consumptionStatus" name="consumptionStatus" class="input_style">
                        <option value="">请选择</option>
                        <option value="未消费">未消费</option>
                        <option value="只交储值">只交储值</option>
                        <option value="未完成">未完成</option>
                        <option value="完成">完成</option>
                    </select>
                </div>
                <div class="condition">
                    <span>回访人员<span class="asterisk">*</span></span>
                    <select id="revisit" name="revisit" class="input_style">
                        <option value="">请选择</option>
                        @for(str in tcList){
                        <option value="${str.tcName}">${str.tcName}</option>
                        @}
                    </select>
                </div>
                <div class="condition">
                    <span style="vertical-align: top;">内容模板</span>
                    <div class="btn-group" style="position: relative">
                        <button type="button" class="btn" onclick="addsf()" style="position: absolute;left: 100px;top: 0;background: white;border: none">添加模板</button>
                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" onclick="dropdownMenu2()" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">内容模板<span class="caret"></span></button>
                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu2" style="left: 0;" id="dropdownMenu2Ul" onclick="dropdownMenu2Ul()"></ul>
                    </div>
                </div>
                <div class="condition">
                    <span style="vertical-align: top;">回访计划<span class="asterisk">*</span></span>
                    <textarea id="remarks2" name="remarks2" style="height: 60px;width: 60%;padding: 0 5px;"></textarea>
                </div>
                <div class="condition">
                    <span style="vertical-align: top;">结果模板</span>
                    <div class="btn-group" style="position: relative">
                        <button type="button" class="btn" onclick="addjg()" style="position: absolute;left: 100px;top: 0;background: white;border: none">添加模板</button>
                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" onclick="dropdownMenu1()" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">结果模板<span class="caret"></span></button>
                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu1" style="left: 0;" id="dropdownMenu1Ul" onclick="dropdownMenu1Ul()"></ul>
                    </div>
                </div>
                <div class="condition">
                    <span style="vertical-align: top;">回访结果</span>
                    <textarea id="revisitContent" name="revisitContent" style="height: 60px;width: 60%;padding: 0 5px;"></textarea>
                </div>
                <div style="padding: 10px 0;">
                    <button type="button" onclick="submitTc1()" id="submitTc1" class="btn" style="background: #FF7E00;color: white">保存待计划</button>
                    <button type="button" onclick="submitTc2()" id="submitTc2" class="btn" style="background: #FF7E00;color: white">完成回访</button>
                    <button type="button" class="btn cancel">取消</button>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/tcCenter/consultant/open_bill2.js?v=20200628"></script>